package com.augmentum.oes.exception;

import java.util.HashMap;
import java.util.Map;

public class ParameterException extends Exception {

    private static final long serialVersionUID = 4901092369474213036L;
    private Map<String, String> errorMessage = new HashMap<String, String>();

    public Map<String, String> getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(Map<String, String> errorMessage) {
        this.errorMessage = errorMessage;
    }

    public void addErrorMessage(String messageName, String message) {
        errorMessage.put(messageName, message);
    }

    public boolean isErrorMessage() {
        return !errorMessage.isEmpty();
    }

}
